#ifndef _SFMLGAME_H__
#define _SFMLGAME_H__

#include <SFML/Graphics.hpp>
#include "Game.hpp"

namespace openfe
{

  class SFMLGame : public Game
  {
    sf::RenderWindow* app;
    Input* in;
    Render* re;

  public:
    SFMLGame ();

    virtual ~SFMLGame();
    
    virtual bool finished() { return !app->IsOpened(); }
  
    void endGame(){app->Close();}
    sf::RenderWindow* getMainWindow(){return app;}

    virtual void update();
    virtual Input* getInput(){return in;} 
    virtual Render* getRender(){return re;}

  };
}
#endif
